<?php
/**
 * Created by PhpStorm.
 * User: u
 * Date: 2018/12/11
 * Time: 11:45
 */
namespace common\sources\read\category;

use common\models\craftsman\Category;

class CategoryAccess implements ICategoryAccess
{

    public function getCategory($cId)
    {
        return Category::find()
                ->select('id,name,pid,status')
                ->where([ 'pid'=> $cId])
                ->asArray()
                ->all();
    }
}